First, walls. You can never push through a wall (well, maybe never).
Next are plain blue blocks. They don't do much but take up space. If you push one, it will slide into the next space as long as there is space open.
This can and will cause chain reactions, if you push on a line of 4 plain blocks that have an empty space at the end of the line, all 4 blocks will slide over one.